package com.muyu.payment.domain.req;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 创建订单DTO
 */
@Data
public class CreateOrderDto {
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    
    @NotNull(message = "金额不能为空")
    @DecimalMin(value = "0.01", message = "金额必须大于0")
    private BigDecimal amount;
    
    @NotBlank(message = "订单标题不能为空")
    private String subject;
    
    private String body;
}
